.chat-area-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  background-color: #f5f5f5;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

.message-bubble {
  display: flex;
  margin: 8px 0;
  max-width: 80%;
}

.message-bubble.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 8px;
  object-fit: cover;
}

.message-content-container {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.message-content {
  padding: 8px 12px;
  border-radius: 18px;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
}

.user-message .message-content {
  background-color: #95ec69;
  color: #000;
  margin-left: 8px;
}

.character-message .message-content {
  background-color: #fff;
  color: #000;
  margin-right: 8px;
}

.message-timestamp {
  font-size: 12px;
  color: #999;
  margin: 4px 8px;
}

.input-container {
  display: flex;
  gap: 8px;
  padding: 8px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
}

.message-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
}

.send-button {
  padding: 8px 16px;
  background-color: #07c160;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.send-button:hover {
  background-color: #06ad56;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: 16px;
  object-fit: cover;
}

.name-input {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.save-button {
  background-color: #07c160;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.save-button:hover {
  background-color: #06ad56;
}
